<template>
  <div class="four">
    <h1>This is an four page</h1>
    <WangEditor @change="changeWang" :value="WangValue"></WangEditor>
  </div>
</template>

<script>
import WangEditor from '../components/WangEditor/WangEditor.vue' // WangEditor在项目中的地址
export default {
  components: {
    WangEditor
  },

  data () {
    return {
      WangValue: ''
    }
  },

  methonds: {
    changeWang (html) {
      // 这里的html是带有标签的
      this.WangValue = html
      console.log(this.WangValue)
    }

  }

}
</script>
